-
Notifications
You must be signed in to change notification settings - Fork 29.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
src: replace ASSERT with CHECK #14474
Conversation
Builds always have asserts enabled so there is no point distinguishing between debug-only checks and run-time checks. Replace calls to ASSERT and friends with their CHECK counterparts. Fixes: nodejs#14461
The comments still methon assertions in many places just above calls to The remaining usages of
@bnoordhuis Are those all intentional? |
Builds always have asserts enabled so there is no point distinguishing between debug-only checks and run-time checks. Replace calls to ASSERT and friends with their CHECK counterparts. Fixes: nodejs#14461 PR-URL: nodejs#14474 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Nikolai Vavilov <[email protected]> Reviewed-By: XadillaX <[email protected]>
@ChALkeR node.h and node_object_wrap.h are public headers, they can't use CHECK. I'll open a separate PR for the other two. (I pointed out the assert() in node_api.cc a while ago but seems it hasn't been fixed yet.) edit: wups, the PR I put up for review didn't contain the change to node.gyp. |
Builds always have asserts enabled so there is no point distinguishing between debug-only checks and run-time checks. Replace calls to ASSERT and friends with their CHECK counterparts. Fixes: #14461 PR-URL: #14474 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Nikolai Vavilov <[email protected]> Reviewed-By: XadillaX <[email protected]>
Should this be backported to |
ping @bnoordhuis |
1 similar comment
ping @bnoordhuis |
Builds always have asserts enabled so there is no point distinguishing
between debug-only checks and run-time checks. Replace calls to ASSERT
and friends with their CHECK counterparts.
Fixes: #14461
CI: https://ci.nodejs.org/job/node-test-pull-request/9343/